﻿using System;
using System.Windows.Forms;

namespace NDK.Frm
{
    public partial class Dlg_ShowChartDetails : Form
    {
        private ChartEx dataChart = null;
        private string chartName = "";

        public string ChartName
        {
            get { return chartName; }
            set { chartName = value; }
        }
        public ChartEx DataChart
        {
            get { return dataChart; }
            set { dataChart = value; }
        }

        public Dlg_ShowChartDetails()
        {
            InitializeComponent();
        }

        private void Dlg_ShowChartDetails_Load(object sender, EventArgs e)
        {
            this.Controls.Add(dataChart.chart);
            dataChart.chart.Refresh();
        }


        private void Dlg_ShowChartDetails_FormClosing(object sender, FormClosingEventArgs e)
        {
            Frm_Statistics.chartExStatic = dataChart;
            DialogResult = DialogResult.Abort;
        }


    }
}
